package com.hckjsec.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.system.mapper.SysReceiptMapper;
import com.hckjsec.system.domain.SysReceipt;
import com.hckjsec.system.service.ISysReceiptService;

/**
 * 收文Service业务层处理
 * 
 * @author cyt
 * @date 2021-10-11
 */
@Service
public class SysReceiptServiceImpl implements ISysReceiptService 
{
    @Autowired
    private SysReceiptMapper sysReceiptMapper;

    /**
     * 查询收文
     * 
     * @param receiptId 收文ID
     * @return 收文
     */
    @Override
    public SysReceipt selectSysReceiptById(Long receiptId)
    {
        return sysReceiptMapper.selectSysReceiptById(receiptId);
    }

    /**
     * 查询收文列表
     * 
     * @param sysReceipt 收文
     * @return 收文
     */
    @Override
    public List<SysReceipt> selectSysReceiptList(SysReceipt sysReceipt)
    {
        return sysReceiptMapper.selectSysReceiptList(sysReceipt);
    }

    /**
     * 新增收文
     * 
     * @param sysReceipt 收文
     * @return 结果
     */
    @Override
    public int insertSysReceipt(SysReceipt sysReceipt)
    {
        return sysReceiptMapper.insertSysReceipt(sysReceipt);
    }

    /**
     * 修改收文
     * 
     * @param sysReceipt 收文
     * @return 结果
     */
    @Override
    public int updateSysReceipt(SysReceipt sysReceipt)
    {
        return sysReceiptMapper.updateSysReceipt(sysReceipt);
    }

    /**
     * 批量删除收文
     * 
     * @param receiptIds 需要删除的收文ID
     * @return 结果
     */
    @Override
    public int deleteSysReceiptByIds(Long[] receiptIds)
    {
        return sysReceiptMapper.deleteSysReceiptByIds(receiptIds);
    }

    /**
     * 删除收文信息
     * 
     * @param receiptId 收文ID
     * @return 结果
     */
    @Override
    public int deleteSysReceiptById(Long receiptId)
    {
        return sysReceiptMapper.deleteSysReceiptById(receiptId);
    }
}
